#include <gtest/gtest.h>

#include "singleton.h"
#include "observer_pattern.h"
#include "visitor_pattern.h"
#include "command_pattern.h"

/**
** @brief:  右值引用相关
** @author: yangxianpku@pku.edu.cn
** @date:   2023/12/21
*/
TEST(DesignPattern, singleton) {
  EXPECT_EQ(singleton(), 0);
}

TEST(DesignPattern, observer) {
  EXPECT_EQ(observer(), 0);
}

TEST(DesignPattern, visitor) {
  EXPECT_EQ(visitor(), 0);
}

TEST(DesignPattern, command) {
  EXPECT_EQ(command(), 0);
}
